<?php
/*
Template Name: Google Custom Search Result
*/
?>
<?php get_header(); ?>
<div id="container"><!-- Begin container -->
	<?php get_sidebar(); ?>
	<div id="content"><!-- Begin content -->
		<?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
		<div id="pageinfo">
			<h2>Search</h2>
			<div class="pagetext formattext">
				<div id="cse-search-results"></div>
				<script type="text/javascript">
		 			var googleSearchIframeName = "cse-search-results";
		 			var googleSearchFormName = "cse-search-box";
		 			var googleSearchFrameWidth = 545;
		 			var googleSearchDomain = "www.google.com";
		 			var googleSearchPath = "/cse";
		 		</script>	
		 		<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
		 	</div>
		</div>
		<?php else : ?>
		<p class="errortip"><?php _e('Sorry, no posts matched your criteria.', 'eachBlue'); ?></p>
		<?php endif; ?>	
  </div><!-- End content-->
</div><!-- End container -->
<?php get_footer(); ?> 	